package anji.plus.system.mark.domain;

import anji.plus.system.mark.base.BaseDomain;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.datatype.jsr310.deser.LocalDateTimeDeserializer;
import com.fasterxml.jackson.datatype.jsr310.ser.LocalDateTimeSerializer;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
 * <p>
 * 任务节点表
 * </p>
 *
 * @author luwei
 * @since 2023-11-08
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
public class TaskNodeList extends BaseDomain {

    private static final long serialVersionUID = 1L;


    /**
     * 关联任务ID
     */
    @TableField("TASK_ID")
    private Long taskId;

    /**
     * 任务节点编号
     */
    @TableField("NODE_ORDER_ID")
    private String nodeOrderId;

    /**
     * 任务节点名称
     */
    @TableField("NODE_NAME")
    private String nodeName;

    /**
     * 节点截止时间
     */
    @TableField("NODE_END_TIME")
    private String nodeEndTime;

    /**
     * 任务节点进度
     */
    @TableField("NODE_PROGRESS")
    private String nodeProgress;

    /**
     * 是否删除  0  否  1 是
     */
    @TableField("IS_DEL")
    private Integer isDel;

    /**
     * 任务节点分数
     */
    @TableField("NODE_SCORE")
    private Double nodeScore;

    /**
     * 子节点备注
     */
    @TableField("CHILD_MARK")
    private String childMark;

    public String getChildMark(){
        if(this.childMark == null){
            return  "";
        }
        return childMark;
    }

}
